﻿using System.Windows;
using System.Windows.Controls;

namespace Flare.Pages.ITContract
{
    public partial class Details : UserControl, ITypicalPage
    {
        public string name
        {
            get { return "Подробнее"; }
        }
        int _id;
        public Details(int id)
        {
            this.DataContext = new DB.contract_lists().Details(id);
            InitializeComponent();
            _id = id;
            
        }

        private void EditThis_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            glob.kernel.ShowPage(typeof(Pages.ITContract.Edit), _id, replace_current: true);
        }

        private void RemoveThis_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
          //  glob.kernel.ShowPage(typeof(Pages.ITContract.), _id, replace_current: true);
        }
    }
}
